﻿@using WD.Db.Contract;
@model User
@{
    ViewBag.Title = "WD.Db.Contract.User_Create";
    Layout = "~/Views/Shared/_LayoutEdit.cshtml";
}  
<form id = "User_mainForm" action="@Url.Action("Create", "User")" method="POST">

		@Html.HiddenFor(model => model.ID)
<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.CreateTime, "CreateTime", new { @class = "" })
									
<div class="input-group">
<input class="form-control "  role="date-picker" id="CreateTime" name="CreateTime" value="@Model.CreateTime" type="text" data-format="yyyy-mm-dd" />
<span class="input-group-addon">
<i class="fa fa-calendar"></i>
</span>
</div>
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.IsDeleted, "IsDeleted", new { @class = "" })
									
					
<div class="checkbox-nice">
	<input type="checkbox" id="IsDeleted" name="IsDeleted">
	<label for="IsDeleted">
		IsDeleted
	</label>
	<input name="IsDeleted" type="hidden" value="false">
</div>		 
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Name, "Name", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Type, "Type", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Type, new { @class = "form-control" })
								</div>


								@Html.HiddenFor(model => model.UserId)
<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Pwd, "Pwd", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Pwd, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.ShopId, "ShopId", new { @class = "" })
									
					@Html.TextBoxFor(model => model.ShopId, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Pro, "Pro", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Pro, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.City, "City", new { @class = "" })
									
					@Html.TextBoxFor(model => model.City, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Dis, "Dis", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Dis, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.InvBy, "InvBy", new { @class = "" })
									
					@Html.TextBoxFor(model => model.InvBy, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.CardId, "CardId", new { @class = "" })
									
					@Html.TextBoxFor(model => model.CardId, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Balance, "Balance", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Balance, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.WithdrawPwd, "WithdrawPwd", new { @class = "" })
									
					@Html.TextBoxFor(model => model.WithdrawPwd, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.userPhone, "userPhone", new { @class = "" })
									
					@Html.TextBoxFor(model => model.userPhone, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.VerifyPhone, "VerifyPhone", new { @class = "" })
									
					@Html.TextBoxFor(model => model.VerifyPhone, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.Street, "Street", new { @class = "" })
									
					@Html.TextBoxFor(model => model.Street, new { @class = "form-control" })
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.IsShoper, "IsShoper", new { @class = "" })
									
					
<div class="checkbox-nice">
	<input type="checkbox" id="IsShoper" name="IsShoper">
	<label for="IsShoper">
		IsShoper
	</label>
	<input name="IsShoper" type="hidden" value="false">
</div>		 
								</div>


						<div class="form-group col-xs-6 ">
			@Html.LabelFor(model => model.IsAgent, "IsAgent", new { @class = "" })
									
					@Html.TextBoxFor(model => model.IsAgent, new { @class = "form-control" })
								</div>


						

</form>

<div class="clearfix"></div>

<script>	
	function UserCheckField() {
		//TODO 检查字段必填项 必须有返回值（成功TRUE,失败FALSE）

		return true;
	}

</script>


